package org.example.juc.lock.demo;

import java.util.concurrent.locks.LockSupport;

/**
 * @author songyafei
 */
public class XiaoLock implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i <= 26; i++) {
            LockSupport.unpark(Thread.currentThread());
            System.out.print((char) (96 + i)); //小写
            LockSupport.park();

        }
    }
}
